<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

// 后台
Route::group(['prefix'=>'admin','namespace'=>'admin','middleware'=>'adminAuthentication'],function (){
    // 由于需要登陆，所以要使用认证中间件
    Route::get('login','AuthenticationController@getLogin');
    Route::post('postlogin','AuthenticationController@postlogin');
    // 进入到 后台首页
    Route::get('index','AdminController@getIndex');
    Route::get('product/list','AdminController@productList');
});